//
//  CWCaptureController.h
//  CloudwalkBankCardOCR
//
//  Created by DengWuPing on 16/11/16.
//  Copyright © 2016年 DengWuPing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CloudwalkCardFront.h"
#import "CWBankCardModel.h"

@protocol cwDetectCardEdgesDelegate <NSObject>

/**
 卡片对齐检测代理方法
 @param cardImage 抠取的卡片图片
 @param score     图像质量分数
 */

-(void)cwBankCardDetectDeleagte:(CWBankCardModel *)cardModel;

@end

@interface CWBankCardCaptureController : UIViewController

//授权码
@property (nonatomic, strong) NSString  *  authCodeStr;

//银行卡类型
@property (nonatomic, assign) CWBankCardType cardType;

//预览Rect
@property (nonatomic, assign) CGRect previewRect;

//图像质量检测阈值
@property (nonatomic, assign) double cardQuality;


//是否支持竖版银行卡扫描  默认为横版银行卡扫描  YES则支持自动旋转
@property (nonatomic, assign) BOOL  isRotate;

@property(nonatomic,weak)id<cwDetectCardEdgesDelegate>delegate;

@end
